import { useRouter } from 'vue-router'

export default function () {
  const router = useRouter()
  const goto = (to) => {
    router.replace(to)
  }
  const gotoLink = (to) => {
    window.open(to, '_blank')
  }
  return {
    goto,
    gotoLink,
  }
}
